package com.shengxing.lljl.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * AlipayOrderDTO - 用于传输支付宝订单信息的 DTO 类
 */

@Data
public class AlipayOrderDTO {

    // 订单号
    private String orderId;

    // 支付宝订单号
    private String alipayOrderId;

    // 用户ID
    private String userId;

    // 商品名称
    private String subject;

    // 商品描述
    private String productDescription;

    // 商品价格
    private BigDecimal price;

    // 订单总金额
    private BigDecimal totalAmount;

    // 支付状态
    private String paymentStatus;

    // 订单创建时间
    private Date orderCreateTime;

    // 支付时间
    private Date paymentTime;

    // 回调通知URL
    private String notifyUrl;

    // 商品详情
    private String goodsDetail;

    // 交易类型（例如：支付，退款等）
    private String transactionType;

    // 用户支付账户
    private String userPayAccount;

    // 支付宝商户号
    private String alipayMerchantId;

    // 支付宝回调参数
    private String alipayCallbackParams;



    // 输出订单信息（可选）
    @Override
    public String toString() {
        return "AlipayOrderDTO{" +
                "orderId='" + orderId + '\'' +
                ", alipayOrderId='" + alipayOrderId + '\'' +
                ", userId='" + userId + '\'' +
                ", subject='" + subject + '\'' +
                ", productDescription='" + productDescription + '\'' +
                ", price=" + price +
                ", totalAmount=" + totalAmount +
                ", paymentStatus='" + paymentStatus + '\'' +
                ", orderCreateTime=" + orderCreateTime +
                ", paymentTime=" + paymentTime +
                ", notifyUrl='" + notifyUrl + '\'' +
                ", goodsDetail='" + goodsDetail + '\'' +
                ", transactionType='" + transactionType + '\'' +
                ", userPayAccount='" + userPayAccount + '\'' +
                ", alipayMerchantId='" + alipayMerchantId + '\'' +
                ", alipayCallbackParams='" + alipayCallbackParams + '\'' +
                '}';
    }
}
